<?php 
$CI =& get_instance();
$CI->load->library("admin/admin_header_lib");
$CI->admin_header_lib->display_header_element(array("script"=>array("jquery")));
$CI->admin_header_lib->display_header();

$CI->load->library('admin/admin_sidebar_lib');
$CI->admin_sidebar_lib->display_sidebar();

?>

<!--End  List-->
<div class="admin_right">
	<div class="email_section">
    	<div class="paper"><h2 class="head02">paper list - add/edit</h2></div>
        <div class="paper002"><a class="red13" href="<?php echo site_url('admin/paper_list/index/'.$page); ?>"> back to list</a></div>
        <div class="clear"></div>
        <div class="line6"></div>
       <?php echo  form_open('admin/paper_list/action'); ?>
       <ul>
       	<li><p class="white_bold">Paper Name: <span class="small">(required)</span></p></li>
       <li><input type="hidden" name="page" value="<?php echo $page; ?>" />
        <input type="hidden" name="paper_id" value="<?php echo  $paper['paper_id'] ?>" />
        <input type="text" name="paper_title" value="<?php 
        if(set_value('paper_title'))
        {echo set_value('paper_title');}else{
        echo $paper['paper_title'];}?>"/>
        <?php echo form_error('paper_title'); ?>
        </li> <div class="height5"></div>
            <li><p class="white_bold">Paper ColourType: <span class="small">(required)</span></p></li>
            <li><input type="text" name="paper_colour" value="<?php  if(set_value('paper_colour'))
        {echo set_value('paper_colour');}else{
        echo $paper['paper_colour'];} ?>"/>
        <?php echo form_error('paper_colour'); ?></li> <div class="height5"></div>
            <li><p class="white_bold">Grammage/GSM: <span class="small">(required)</span></p></li>
            <li><input type="text" name="paper_size" value="<?php  if(set_value('paper_size'))
        {echo set_value('paper_size');}else{
        echo $paper['paper_size'];} ?>"/>
        <?php echo form_error('paper_size'); ?></li>
        <div class="height5"></div>
        <div class="line6"></div>
            <div class="height5"></div>
        <li><input type="submit" name="my_submit" value="<?php if(!empty($paper['paper_id'])){echo 'edit';}else{echo 'add';}?>"/></li>
        </ul>  </form>  
    </div>
	
        <?php /*?><table>
        <tr><th>paper list - add/edit</th><th></th><th><a href="<?php echo site_url('admin/paper_list/index/'.$page); ?>"> back to list</a></th></tr>
		<tr><td>Paper Name: (required) </td></tr><tr><td>
          <?php echo  form_open('admin/paper_list/action'); ?>
         <input type="hidden" name="page" value="<?php echo $page; ?>" />
        <input type="hidden" name="paper_id" value="<?php echo  $paper['paper_id'] ?>" />
        <input type="text" name="paper_title" value="<?php 
        if(set_value('paper_title'))
        {echo set_value('paper_title');}else{
        echo $paper['paper_title'];}?>"/>
        <?php echo form_error('paper_title'); ?>
        </td></tr>
        
        <tr>
        <td>Paper ColourType: (required) </td></tr><tr><td>
        <input type="text" name="paper_colour" value="<?php  if(set_value('paper_colour'))
        {echo set_value('paper_colour');}else{
        echo $paper['paper_colour'];} ?>"/>
        <?php echo form_error('paper_colour'); ?>
        </td></tr>
        <tr>
        <td>Grammage/GSM: (required) </td></tr><tr><td>
        <input type="text" name="paper_size" value="<?php  if(set_value('paper_size'))
        {echo set_value('paper_size');}else{
        echo $paper['paper_size'];} ?>"/>
        <?php echo form_error('paper_size'); ?>
        </td></tr>
        
		<tr>
        <td >
        
        <input type="submit" name="my_submit" value="<?php if(!empty($paper['paper_id'])){echo 'edit';}else{echo 'add';}?>"/>
        </form>  
		</tr>
        
        </tr>
         </table><?php */?>
        
        <?php //endif; ?>
       

 

 
<?php /*  end of all  content  */ ?>

</div><!-- page noright -->

<?php  $this->load->view(TEMPLATE_NAME.'/admin/footer');?>